Playing With Numbers

There will be times when you want to print out just a piece of a paper either because it is long, or because (as I understand is the case for that strange group of people called experimental physicists) many people are working on different chapters (perhaps even sections) of the same paper. In this event you probably want the chapter and section numbers to print correctly when you are proof reading so that you don't get confused. Rest easy, this can be done. PHYZZX defines two quantities which it updates and refers to when it needs chapter and section numbers. These quantities are called
chapternumber
and
sectionnumber
(big surprise!). You, as the editor, can tell PHYZZX to set these numbers to a specific value, say 7, by typing
chapternumber=7
or
sectionnumber=7
Note that for the first time you have encountered an = sign occurring in a statement to TEX. You will encounter this sort of syntax many times, in general when it occurs it will be because it is the natural way to write something.

Once you get involved in fooling with chapter and section numbers there are a few things you have to know. Both the
chapter
and
section
macros increase the respective chapter or section number by 1 before they print anything. Thus, if you want to get a chapternumber like 7 you set
chapternumber=6
The same is true for setting the section number. If you are so perverse as to start in the middle of a chapter, then when you set the section number you must also set the chapter number, since it appears as part of the section heading. Actually, the quantity which appears in the section heading is called
bf
chapterlabel and to set it you have to say
let
chapterlabel=6
or whatever label you want instead of 6. This extra step is required because we really don't think its such a great idea to start in the middle of a chapter and so didn't bother to make it too trivial to do so. If you are starting a chapter, then you don't have to worry about setting the section number since the command
chapter
automatically resets the section number to 0.